import request from '@/utils/request'

// 查询倾角传感器列表
export function listDip(query) {
  return request({
    url: '/system/dip/list',
    method: 'get',
    params: query
  })
}

// 查询倾角传感器详细
export function getDip(dipId) {
  return request({
    url: '/system/dip/' + dipId,
    method: 'get'
  })
}

// 新增倾角传感器
export function addDip(data) {
  return request({
    url: '/system/dip',
    method: 'post',
    data: data
  })
}

// 修改倾角传感器
export function updateDip(data) {
  return request({
    url: '/system/dip',
    method: 'put',
    data: data
  })
}

// 删除倾角传感器
export function delDip(dipId) {
  return request({
    url: '/system/dip/' + dipId,
    method: 'delete'
  })
}
